import axios from '../../utils/request';

/**
 * 模块名:上课时间
 */

//课表时间
export function getTimes(params?: object) {
  return axios.request({
    url: '/time-slots',
    method: 'get',
    params,
  });
}

//课表时间
export function createdTimes(data?: object) {
  return axios.request({
    url: '/time-slots',
    method: 'post',
    data,
  });
}

export default {
  getTimes,
  createdTimes,
};
